//
//  MultiSegmentController.h
//  MultiSegmentController
//
//  Created by 郑林琴 on 15/5/24.
//  Copyright (c) 2015年 Binglin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BIMultiSegmentControl.h"

typedef NS_ENUM(NSUInteger, MultiSegmentLocation) {
    MultiSegmentLocationTop,//segmentControl在顶部
    MultiSegmentLocationBottom,//底部 可当tabbarController
    MultiSegmentLocationNone,//不加在MultiSegmentController界面中适用
};

@interface MultiSegmentController : UIViewController

- (instancetype)initWithSegmentControl:(BIMultiSegmentControl *)control viewControllers:(NSArray<UIViewController *> * )viewControllers;

@property (nonatomic, readonly) NSArray<UIViewController *> *viewControllers;
@property (nonatomic, assign) NSUInteger selectIndex;
@property (nonatomic, assign) id<SegmentSelectProtocol> delegate;
@property (nonatomic, assign) MultiSegmentLocation  segmentLocation;
@property (readonly) UIScrollView  *scrollContainer;

@end
